<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title></title>   
		<s:include value="../common/source.jsp"></s:include>
		<script src="js/Limit.js"></script>	
			
  </head>
  
  <body>
  <script>
/* document.write(extArray.join("  ")); */
</script>
  <div class="body">
    <form class="sui-form form-horizontal sui-validate" action="teacher/modifyTre2.action" method="post"  onsubmit="return LimitAttach(form, file) "  enctype="multipart/form-data">
   <table class="sui-table table-vzebra table0">
                    <tbody>
                      <tr>
                        <td>论著名称</td>
                        <td> <input type="text" class="input-large"  name="trea.name" data-rules="required" value="<s:property value="tre.name" />"></td>
                      </tr>
                        <tr>
                        <td>作者</td>
                        <td>  <input type="text" class="input-large"  name="trea.author" data-rules="required" value="<s:property value="tre.author"/>"> </td>
                      </tr>
                       <tr>
                        <td>书号</td>
                        <td>  <input type="text" class="input-large"  name="trea.bookNum" data-rules="required" value="<s:property value="tre.bookNum" />" >  </td>
                      </tr>
                       <tr>
                        <td>论著出版社</td>
                        <td>  <input type="text" class="input-large"  name="trea.press" data-rules="required" value="<s:property value="tre.press" />">  </td>
                      </tr>
                        <tr>
                        <td>出版年月</td>
                        <td> <input type="text" class="input-large"  data-toggle="datepicker"  name="dates" data-rules="required" value="<s:date name="tre.date"  format="yyyy-MM-dd" />"> </td>
                      </tr>
                      
                        <tr>
                        <td>论著类型</td>
                        <td>  <div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="tre.class_"/>" name="trea.class_" type="hidden"><i class="caret"></i><span>
                  <s:if test="tre.class_==0">教材</s:if>
                  <s:elseif test="tre.class_==1">专著</s:elseif>
                  <s:elseif test="tre.class_==2">编著</s:elseif>
                  <s:elseif test="tre.class_==3">译著</s:elseif>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                 <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>教材</a></li>
                 <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>专著</a></li>
                <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>编著</a></li>
                <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=3>译著</a></li>
                </ul>
              </span>
            </span>
          </div></td>
                      </tr>
                    <tr>
                        <td>摘要</td>
                        <td>  <div class="controls">
            <textarea rows="8" class="tex1" name="trea.abstract_" data-rules="required" ><s:property value="tre.abstract_"/></textarea></td>
                      </tr>
                      <input type="text" name="treid" value="<s:property value="tre.treId"/>" style="display:none;">
                      <input type="text" name="teaid" value="<s:property value="tre.teaId"/>" style="display:none;">
                      <input type="text" name="upname" value="<s:property value="tre.upload"/>" style="display:none;">
                  <tr>
                      <td>上传文件</td>
                        <td>  <input type="file" class="input-large" name="fileCom"> </td>
                      </tr> 
                    </tbody>
                  </table>
  <div class="control-group button3">
          <label class="control-label v-top"></label>
          <div class="controls ">
            <button type="submit" class="sui-btn btn-primary" onclick="return LimitAttach(this.form, this.form.fileCom.value)">提交</button>
            <button type="reset" class="sui-btn">重置</button>
          </div>
        </div>
  </form>
   </div>
   <script>
   if("<s:property value="suc"/>"=="success"){
   alert("修改论著成功！！！");
   }
   </script>
  </body>
</html>
